<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>jq</title>
</head>
<style>
	
</style>
<script src="jquery.js"></script>

<body>

	<h1>aaaaaaaaaaaaa</h1>
	<h1>bbbbbb</h1>

</body>
<script>
	val=$('h1').get(1).outerHTML;
	alert(val);
	
	
</script>
</html>